package com.xinlong.service;

import com.xinlong.entity.Role;
import com.xinlong.entity.Userinfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface IuserService extends UserDetailsService {


    Userinfo findbyname(String name);
    List<Userinfo> SelectUser();


    void save(Userinfo userinfo);


    Userinfo findbyid(String id);

    List<Role> notUserbyRoleid(String id);

    void addRoleToUser(String userid, String[] roleid);
}
